package Pojo;


import Model.Connect;
import java.io.Serializable;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Tan Le Anh
 */
public class User implements Serializable{
    private String taikhoan;
    private String matkhau;
    private String tennguoidung;
    private String gioitinh;
    private Date ngaysinh;
    private String diachi;
    private String email;
    private String dienthoai;
    private String soatm;
    private int loai;
    
    
    

    /**
     * @return the taikhoan
     */
    public String getTaikhoan() {
        return taikhoan;
    }

    /**
     * @param taikhoan the taikhoan to set
     */
    public void setTaikhoan(String taikhoan) {
        this.taikhoan = taikhoan;
    }

    /**
     * @return the matkhau
     */
    public String getMatkhau() {
        return matkhau;
    }

    /**
     * @param matkhau the matkhau to set
     */
    public void setMatkhau(String matkhau) {
        this.matkhau = matkhau;
    }

    /**
     * @return the tennguoidung
     */
    public String getTennguoidung() {
        return tennguoidung;
    }

    /**
     * @param tennguoidung the tennguoidung to set
     */
    public void setTennguoidung(String tennguoidung) {
        this.tennguoidung = tennguoidung;
    }

    /**
     * @return the gioitinh
     */
    public String getGioitinh() {
        return gioitinh;
    }

    /**
     * @param gioitinh the gioitinh to set
     */
    public void setGioitinh(String gioitinh) {
        this.gioitinh = gioitinh;
    }
    

    /**
     * @return the diachi
     */
    public String getDiachi() {
        return diachi;
    }

    /**
     * @param diachi the diachi to set
     */
    public void setDiachi(String diachi) {
        this.diachi = diachi;
    }

    /**
     * @return the email
     */
    public String getEmail() {
        return email;
    }

    /**
     * @param email the email to set
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * @return the dienthoai
     */
    public String getDienthoai() {
        return dienthoai;
    }

    /**
     * @param dienthoai the dienthoai to set
     */
    public void setDienthoai(String dienthoai) {
        this.dienthoai = dienthoai;
    }

    /**
     * @return the soatm
     */
    public String getSoatm() {
        return soatm;
    }

    /**
     * @param soatm the soatm to set
     */
    public void setSoatm(String soatm) {
        this.soatm = soatm;
    }    

    /**
     * @return the ngaysinh
     */
    public Date getNgaysinh() {
        return ngaysinh;
    }

    /**
     * @param ngaysinh the ngaysinh to set
     */
    public void setNgaysinh(Date ngaysinh) {
        this.ngaysinh = ngaysinh;
    }

    /**
     * @return the loai
     */
    public int getLoai() {
        return loai;
    }

    /**
     * @param loai the loai to set
     */
    public void setLoai(int loai) {
        this.loai = loai;
    }

    public User()
    {
        
    }
    
    public User(String taikhoan,String matkhau,String tennguoidung,String gioitinh,Date ngaysinh
            ,String diachi,String email,String dienthoai,String soatm,int loai)
    {
        this.taikhoan=taikhoan;
        this.matkhau=matkhau;
        this.tennguoidung=tennguoidung;
        this.gioitinh=gioitinh;
        this.ngaysinh=ngaysinh;
        this.diachi=diachi;
        this.email=email;
        this.dienthoai=dienthoai;
        this.soatm=soatm;
        this.loai=loai;
    }      
}
